package cn.shopping.order.service.impl;


import cn.shopping.order.dao.OrderItemDao;
import cn.shopping.order.entity.OrderItemEntity;
import cn.shopping.order.service.OrderItemService;

import cn.shopping.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;
import  cn.shopping.common.utils.PageUtils;
import java.util.Map;

@Service("orderItemService")
public class OrderItemServiceImpl extends ServiceImpl<OrderItemDao, OrderItemEntity> implements OrderItemService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OrderItemEntity> page = this.page(
                new Query<OrderItemEntity>().getPage(params), new QueryWrapper<OrderItemEntity>());
        return new PageUtils(page);
    }

}